﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyVoteMVC.Data;
using MyVoteMVC.Domain;
using MyVoteMVC.Common;
using MyVoteMVC.Common.Objects;
using MyVoteMVC.Data.Repositories;

namespace MyVoteMVC.Service
{
    public interface IDictionariesService : IDisposable
    {
        //增加
        bool AddDictionary(string dName, string dtype, string dValue, int dOrder);
        //修改
        bool ModifyDictionary(string dID,string dName, string dtype, string dValue, int dOrder);
        //删除
        bool DeleteDictionary(string dID);
        //获取
        IList<VT_Dictionaries> GetAll();
        //获取单个
        VT_Dictionaries GetByID(string dID);
        VT_Dictionaries GetByName(string dName);
    }
}
